package com.liuhongwei.test.builder.strategy.factory;

import com.liuhongwei.test.bean.TableInfo;
import com.liuhongwei.test.builder.strategy.enums.MapperXmlEnum;

import java.io.BufferedWriter;
import java.io.IOException;

public class MapperXmlFactory {

    public static void buildXml(MapperXmlEnum mapperXmlEnum, TableInfo tableInfo, BufferedWriter bw)
            throws IOException {
        mapperXmlEnum.getClazz().generateMapperXml(tableInfo, bw);
    }

}
